fix: set max window clamp to current monitor size#13171
Conversation
jcollie
left a comment
There was a problem hiding this comment.
This change makes it so that new windows (on Gnome 50) starts out as a minimally sized window. It ignores the window-width and window-height configs completely. Not sure what DE you're testing with but this change won't be accepted until that is remedied.
7885e3f to
9f6eb19
Compare
I noticed that, and thought it was just a bad config on my end. Sorry about that. I resolved it by only overriding gtk's clamp when the window exceeds the bounds so it should open at the correct size now. |
9f6eb19 to
004c88e
Compare
This PR fixes #7984. The issue was that GTK would clamp the window itself based on the display it was opened on. We fix this by computing the size based on the current display and then implicitly setting the window size instead of relying on GTK to do it.
Claude Code w/ Opus 4.7 was used to investigate, fix and explain some of the Ghostty architecture to me.